<%-- 
    Document   : EditContact
    Created on : Dec 5, 2012, 9:11:19 AM
    Author     : Quang Thao
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Contact</title>
        <%@include file="../LayoutAdmin/InHead.jsp" %>
    </head>
    <body>
        <div id="horizontal_bar">
            <div id="wrapper">
                <%@include file="../LayoutAdmin/Top.jsp" %>
                <div id="middle">
                    <%@include file="../LayoutAdmin/Middle_Top.jsp" %>
                    <div class="left">
                        <div class="menuitem_ulstyle_vertical">
                            <ul>
                                <li>
                                    <a href="EditAbout.jsp">Giới thiệu</a>
                                </li>
                                <li>
                                    <a href="EditContact.jsp">Liên hệ</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="bar_bt_lr"></div>
                    <div class="right">
                        <form action="../../EditContactServlet" method="POST">
                            <%
                                Bean.OtherBean other = new Bean.OtherBean();
                                BO.OtherBO otherBO = new BO.OtherBO();      
                                
                                other = otherBO.GetInfo("Contact");
                                other.setTitle(other.getTitle().replace("<br>", "\r\n"));
                                other.setContent(other.getContent().replace("<br>", "\r\n"));
                            %>
                            <h1>Thay đổi thông tin Liên hệ</h1>
                            <table class="Table2">
                                <tr>
                                    <td>Tiêu đề :</td>
                                    <td>
                                        <input type="text" name="txtTitle" value="<%=other.getTitle()%>" size="50" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>Nội dung :</td>
                                    <td>
                                        <textarea name="txtContent" rows="20" cols="40">
                                            <%=other.getContent()%>
                                        </textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <th colspan="2">
                                        <input type="submit" value="Cập nhật" name="btnUpdate" 
                                               class="Button1"/>
                                    </th>
                                </tr>
                            </table>
                        </form>
                    </div>
                </div>
                <%@include file="../LayoutUser/Bottom.jsp" %>
            </div>
        </div>
    </body>
</html>
